<template>
  <el-container class="main-container">
    <el-aside>
      <Aside />
    </el-aside>
    <el-container>
      <el-header>
        <Header />
      </el-header>
      <Label />
      <el-main>
        <keep-alive >
          <router-view></router-view>
        </keep-alive>
      </el-main>
    </el-container>
  </el-container>
</template>

<script>
import Header from "./components/Header.vue";
import Aside  from "./components/Aside";
import Label from "./components/Label";
import { mapState } from "vuex";
export default {
  components: {
    Header,
    Aside,
    Label
  },
  props: {},
  data() {
    return {};
  },
  computed: {
    ...mapState(["cacheList"])
  }
};
</script>

<style scoped lang="scss">
.main-container {
  width: 100%;
  height: 100%;
  .el-aside {
    width: auto!important;
  }
  .el-header {
    padding: 0;
    z-index: 9;
  }
}
</style>
